package com.example.springbootdemo.constant;

/**
 * @ClassName: SystemConstant
 * @Description: 系统参数常量
 * @Author: TXW
 * @Date: 2025/1/16
 */

public class SystemConstant {

    //产品库存
    public static final String STOCK_KEY =  "STOCK:";
    //产品
    public static final String PRODUCT =  "PRODUCT:ID";
    public static final String PRODUCT_CACHE =  "PRODUCT:CACHE:ID";

    //设置过期时间（1天）
    public static final long TIME_OUT_1DAY = 60 * 60 * 24;
    //设置过期时间（1小时）
    public static final long TIME_OUT_1HOUR =  60 * 60;
    //设置过期时间（1分钟）
    public static final long TIME_OUT_1MINUTE =  60;
}
